﻿<UserControl x:Class="MediaAssistant.Controls.SendFeedback.SendFeedbackView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Background="{StaticResource LibraryBackground}"
             Width="500" Height="Auto">
    <StackPanel Margin="10" Orientation="Vertical">
        <StackPanel Visibility="{Binding CrashBugMessageVisibility}">
            <TextBlock Margin="2" Text="We are sorry!" FontWeight="Bold"/>
            <TextBlock Margin="2" Text="Media Assistant had a problem and crashed."/>
            <TextBlock Margin="2" Text="To help us diagnose the problem, please send us the crash report."/>
        </StackPanel>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="110"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <CheckBox Margin="2" Grid.ColumnSpan="2" Grid.Row="0" Grid.Column="0" Content="Allow Media Assistant Team to contact me about this report." 
                      IsChecked="{Binding AllowContact}"/>
            <TextBlock Margin="2" Grid.Row="1" Grid.Column="0" Text="Your email address: "/>
            <TextBox Margin="2" Grid.Row="1" Grid.Column="1" Width="250" HorizontalAlignment="Left" Text="{Binding FromEmailAddress}"/>

            <TextBlock Margin="2" Grid.Row="4" Grid.Column="0" Text="Subject: "/>
            <TextBox Margin="2"  Grid.Row="4" Grid.Column="1" Text="{Binding Subject}"/>

            <TextBox Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" Margin="2,5" Text="{Binding Message}" 
                     AcceptsReturn="True" Height="150"
                     VerticalScrollBarVisibility="Auto"/>
        </Grid>
    </StackPanel>
</UserControl>
